package com.example.javasample.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 用户
 *
 * @author Kylin
 */
@Schema(name = "用户", description = "用户对象")
@TableName("user")
@Data
@EqualsAndHashCode(callSuper = true)
public class UserDO extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String name;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "邮箱")
    private String email;

}
